package xcmg.device.web.workBoard;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import xcmg.device.infra.BasicController;
import xcmg.device.service.workBoard.WorkBoardService;
import yb.ecp.fast.infra.annotation.FastMappingInfo;
import yb.ecp.fast.infra.infra.ActionResult;

/**
 * Created by sqq on 2018/3/21.
 */
@RestController
@RequestMapping("/workBoard")
public class WorkBoardController extends BasicController {
    @Autowired
    private WorkBoardService workBoardService;

    @RequestMapping(value = "workMain",method = RequestMethod.GET)
    @FastMappingInfo(needLogin = true)
    public ActionResult workMain() throws Exception {
        return super.actionValueResult(workBoardService.workMain(getOrgId()));
    }
    @RequestMapping(value = "applyCount",method = RequestMethod.GET)
    @FastMappingInfo(needLogin = true)
    public ActionResult applyCount() throws Exception {
        return super.actionValueResult(workBoardService.applyCount());
    }
}
